﻿using System;
using System.Threading;
using System.Xml;

namespace MassIntellect.WorkIt.Frames
{
    public class Sleep : WorkFrame
    {
        [Serialize]
        public int Value { get; set; }

        protected override void protectedPulse(PulseArgs args)
        {
            Echo("Пауза {0:0.##} секунд", (double)Value / 1000);
            Thread.Sleep(Math.Max(0, Value));
            base.protectedPulse(args);
        }
    }
}
